#include "gtest/gtest.h"

#include "Graph.h"
//#include "../include/Graph.h"

//using SG::Algebra::Graph;
using namespace SG::Algebra;

TEST (GraphTest, ConstructByEdgeSize)
{
    // Input
    std::vector<std::size_t> EdgeSize{ 2, 2, 2 };
    // Test data
    Graph gTest (EdgeSize);

    // Target data
    const std::vector<std::size_t> pointerTarget = { 0, 2, 4, 6 };
    const std::size_t              neighbourSizeTarget{ 6 };

    // Check
    ASSERT_TRUE (pointerTarget == gTest.m_pointer);
    ASSERT_TRUE (neighbourSizeTarget == gTest.m_neighbour.size ());
}